﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class theBit3is1or0
{
    static void Main(string[] args)
    {
        int number = (Convert.ToInt32(Console.ReadLine()));
        int position = 3;
        int mask = 1 << position;
        int nAndMask = number & mask;
        int bit = nAndMask >> position;
        bool isOne = (bit == 1);
        Console.WriteLine("Bit 3 for num {0} is {1} - {2}",number, bit, isOne);
    }
}

